using cramer's rule to solve 3 equations